
//ajax同步请求调用
function ajaxRequest(requestUrl , params){
	var result;
	$.ajax({
		url : requestUrl ,
		type :'POST',
		data : params ,
		dataType : "json",
		async : false,
		traditional:true,
		contentType : 'application/x-www-form-urlencoded; charset=UTF-8',
		success:function(data){
			result = data;
		}		
	});
	return result;
}

//ajax异步请求调用
function ajaxRequestAsync(requestUrl , params , fun){
	$.ajax({
		url : requestUrl ,
		type :'POST',
		data : params ,
		dataType : "json",
		contentType : 'application/x-www-form-urlencoded; charset=UTF-8',
		success:function(data){
			fun(data);
		}		
	});
}

//ajax同步请求调用
function ajaxRequestByJSONParams(requestUrl , params){
	var result;
	$.ajax({
		url : requestUrl ,
		type :'POST',
		data : params ,
		dataType : "json",
		async : false,
		traditional:true,
		contentType : 'application/json; charset=UTF-8',
		success:function(data){
			result = data;
		}		
	});
	return result;
}

//ajax异步请求调用
function ajaxRequestAsyncByJSONParams(requestUrl , params , fun){
	$.ajax({
		url : requestUrl ,
		type :'POST',
		data : params ,
		dataType : "json",
		contentType : 'application/json; charset=UTF-8',
		success:function(data){
			fun(data);
		}		
	});
}